package com.example.service.webhook.business.alipay.entity;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liyang
 * @email liyang@51dojo.com
 * @create 2017-11-03 上午10:04
 * @description 支付宝借呗信息
 **/
@JsonIgnoreProperties(value = {"primaryVal", "keyColumns", "tableName"}, ignoreUnknown = true)
public class AlipayJieBeiEntity implements Saveable {

    private long id;
    private String userId;
    private Date createTime;
    private Date lastModifyTime;
    private static final String[] keyColumns = {"id"};
    private static final String tableName = "t_alipay_jiebei";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }

    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

    private String mappingId;

    private Integer creditAmt;

    private Integer loanableAmt;

    private BigDecimal riskIntByThousand;

    private boolean ovdAble;

    private boolean newAble;

    private String bindedMobile;

    private String refuseReason;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public String getMappingId() {
        return mappingId;
    }

    public void setMappingId(String mappingId) {
        this.mappingId = mappingId;
    }

    public Integer getCreditAmt() {
        return creditAmt;
    }

    public void setCreditAmt(Integer creditAmt) {
        this.creditAmt = creditAmt;
    }

    public Integer getLoanableAmt() {
        return loanableAmt;
    }

    public void setLoanableAmt(Integer loanableAmt) {
        this.loanableAmt = loanableAmt;
    }

    public BigDecimal getRiskIntByThousand() {
        return riskIntByThousand;
    }

    public void setRiskIntByThousand(BigDecimal riskIntByThousand) {
        this.riskIntByThousand = riskIntByThousand;
    }

    public boolean isOvdAble() {
        return ovdAble;
    }

    public void setOvdAble(boolean ovdAble) {
        this.ovdAble = ovdAble;
    }

    public boolean isNewAble() {
        return newAble;
    }

    public void setNewAble(boolean newAble) {
        this.newAble = newAble;
    }

    public String getBindedMobile() {
        return bindedMobile;
    }

    public void setBindedMobile(String bindedMobile) {
        this.bindedMobile = bindedMobile;
    }

    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }
}
